package com.wqr.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PasswordInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public PasswordInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPasswordInfoIdIsNull() {
            addCriterion("password_info_id is null");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdIsNotNull() {
            addCriterion("password_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdEqualTo(Integer value) {
            addCriterion("password_info_id =", value, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdNotEqualTo(Integer value) {
            addCriterion("password_info_id <>", value, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdGreaterThan(Integer value) {
            addCriterion("password_info_id >", value, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("password_info_id >=", value, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdLessThan(Integer value) {
            addCriterion("password_info_id <", value, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("password_info_id <=", value, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdIn(List<Integer> values) {
            addCriterion("password_info_id in", values, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdNotIn(List<Integer> values) {
            addCriterion("password_info_id not in", values, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdBetween(Integer value1, Integer value2) {
            addCriterion("password_info_id between", value1, value2, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andPasswordInfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("password_info_id not between", value1, value2, "passwordInfoId");
            return (Criteria) this;
        }

        public Criteria andOldPasswordIsNull() {
            addCriterion("old_password is null");
            return (Criteria) this;
        }

        public Criteria andOldPasswordIsNotNull() {
            addCriterion("old_password is not null");
            return (Criteria) this;
        }

        public Criteria andOldPasswordEqualTo(String value) {
            addCriterion("old_password =", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordNotEqualTo(String value) {
            addCriterion("old_password <>", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordGreaterThan(String value) {
            addCriterion("old_password >", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("old_password >=", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordLessThan(String value) {
            addCriterion("old_password <", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordLessThanOrEqualTo(String value) {
            addCriterion("old_password <=", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordLike(String value) {
            addCriterion("old_password like", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordNotLike(String value) {
            addCriterion("old_password not like", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordIn(List<String> values) {
            addCriterion("old_password in", values, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordNotIn(List<String> values) {
            addCriterion("old_password not in", values, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordBetween(String value1, String value2) {
            addCriterion("old_password between", value1, value2, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordNotBetween(String value1, String value2) {
            addCriterion("old_password not between", value1, value2, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordIsNull() {
            addCriterion("new_password is null");
            return (Criteria) this;
        }

        public Criteria andNewPasswordIsNotNull() {
            addCriterion("new_password is not null");
            return (Criteria) this;
        }

        public Criteria andNewPasswordEqualTo(String value) {
            addCriterion("new_password =", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordNotEqualTo(String value) {
            addCriterion("new_password <>", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordGreaterThan(String value) {
            addCriterion("new_password >", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("new_password >=", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordLessThan(String value) {
            addCriterion("new_password <", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordLessThanOrEqualTo(String value) {
            addCriterion("new_password <=", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordLike(String value) {
            addCriterion("new_password like", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordNotLike(String value) {
            addCriterion("new_password not like", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordIn(List<String> values) {
            addCriterion("new_password in", values, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordNotIn(List<String> values) {
            addCriterion("new_password not in", values, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordBetween(String value1, String value2) {
            addCriterion("new_password between", value1, value2, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordNotBetween(String value1, String value2) {
            addCriterion("new_password not between", value1, value2, "newPassword");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andLoginIdIsNull() {
            addCriterion("login_id is null");
            return (Criteria) this;
        }

        public Criteria andLoginIdIsNotNull() {
            addCriterion("login_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoginIdEqualTo(Integer value) {
            addCriterion("login_id =", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotEqualTo(Integer value) {
            addCriterion("login_id <>", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdGreaterThan(Integer value) {
            addCriterion("login_id >", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("login_id >=", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdLessThan(Integer value) {
            addCriterion("login_id <", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdLessThanOrEqualTo(Integer value) {
            addCriterion("login_id <=", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdIn(List<Integer> values) {
            addCriterion("login_id in", values, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotIn(List<Integer> values) {
            addCriterion("login_id not in", values, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdBetween(Integer value1, Integer value2) {
            addCriterion("login_id between", value1, value2, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotBetween(Integer value1, Integer value2) {
            addCriterion("login_id not between", value1, value2, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginNameIsNull() {
            addCriterion("login_name is null");
            return (Criteria) this;
        }

        public Criteria andLoginNameIsNotNull() {
            addCriterion("login_name is not null");
            return (Criteria) this;
        }

        public Criteria andLoginNameEqualTo(String value) {
            addCriterion("login_name =", value, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameNotEqualTo(String value) {
            addCriterion("login_name <>", value, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameGreaterThan(String value) {
            addCriterion("login_name >", value, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameGreaterThanOrEqualTo(String value) {
            addCriterion("login_name >=", value, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameLessThan(String value) {
            addCriterion("login_name <", value, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameLessThanOrEqualTo(String value) {
            addCriterion("login_name <=", value, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameLike(String value) {
            addCriterion("login_name like", value, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameNotLike(String value) {
            addCriterion("login_name not like", value, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameIn(List<String> values) {
            addCriterion("login_name in", values, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameNotIn(List<String> values) {
            addCriterion("login_name not in", values, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameBetween(String value1, String value2) {
            addCriterion("login_name between", value1, value2, "loginName");
            return (Criteria) this;
        }

        public Criteria andLoginNameNotBetween(String value1, String value2) {
            addCriterion("login_name not between", value1, value2, "loginName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}